<template>
	<view class="content">
		<ActivityEnds
			:activityEndsShow="false"
			:activityEnds="3"
		></ActivityEnds>
		<!-- <AdPoster :adStatus="true" :posterData="posterData"></AdPoster> -->
		<AddressWindow
			:value="showPopup"
			:address-list="list"
			@close="showPopup = !showPopup"
			@checked="select"
		></AddressWindow>
		<button
			@click="showPopup = !showPopup"
			class="btn"
		>
			展示地址弹窗
		</button>
		<button
			@click="pageth"
			class="btn"
		>
			前往图标地址
		</button>
		<button
			@click="pageth"
			class="btn"
		>
			前往图标地址
		</button>
		<CustomerService></CustomerService>

		<wangx-tabbar ref="tabbar"></wangx-tabbar>
		<!-- <WxIcons name="home"></WxIcons>
		<WxIcons name="home-fill"></WxIcons>
		<WxIcons name="menu"></WxIcons>
		<WxIcons name="menu-fill"></WxIcons> -->
	</view>
</template>

<script>
import ActivityEnds from '@/components/ActivityEnds.vue';
import AdPoster from '@/components/adPoster.vue';
import AddressWindow from '@/components/AddressWindow.vue';
import CustomerService from '@/components/CustomerService';
export default {
	components: {
		ActivityEnds,
		AdPoster,
		AddressWindow,
		// CouponList
		CustomerService
	},
	onShow() {
		this.$refs.tabbar.setCurrentIndex();
	},
	data() {
		return {
			title: 'Hello',
			posterData: {
				ad_poster: 'https://img0.baidu.com/it/u=3844558416,1704394707&fm=253&fmt=auto&app=138&f=PNG?w=600&h=400'
			},
			showPopup: false,
			list: [
				{
					id: 1,
					realName: '张三',
					phone: 18812341234,
					province: '江西省',
					city: '上饶市',
					district: '鄱阳县',
					detail: '北京欢迎你哇哈哈哈'
				},
				{
					id: 2,
					realName: '张三',
					phone: 18812341234,
					province: '江西省',
					city: '上饶市',
					district: '鄱阳县',
					detail: '北京欢迎你哇哈哈哈'
				},
				{
					id: 3,
					realName: '张三',
					phone: 18812341234,
					province: '江西省',
					city: '上饶市',
					district: '鄱阳县',
					detail: '北京欢迎你哇哈哈哈'
				},
				{
					id: 4,
					realName: '张三',
					phone: 18812341234,
					province: '江西省',
					city: '上饶市',
					district: '鄱阳县',
					detail: '北京欢迎你哇哈哈哈'
				}
			]
		};
	},
	onLoad() {},
	methods: {
		pageth() {
			uni.navigateTo({
				url: '/pages/subPackages/example/Icon/index'
			});
		},
		select(e) {
			console.log(e);
		}
	}
};
</script>

<style lang="scss" scoped>
page {
	background: #f4f4f4;
}

// .btn{
// 	color:$wx-primary;
// 	font-size
// }
</style>
